Skip to content

Conversation

@ethanfurman
Copy link
Member

@ethanfurman ethanfurman commented Apr 13, 2023

a mixin must have a new method to be interpreted as a data-type, an init method is not enough (restores pre-3.11 behavior)

(cherry picked from commit a6f9594)

Co-authored-by: Ethan Furman ethan@stoneleaf.us

…ta type (pythonGH-103495)

a mixin must either have a __new__ method, or be a dataclass, to be interpreted as a data-type.
                    (cherry picked from commit a6f9594)

                    Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
@ethanfurman ethanfurman merged commit 3b929a7 into python:3.11 Apr 13, 2023
@ethanfurman ethanfurman deleted the backport-a6f9594-3.11 branch April 13, 2023 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants